package com.wellsantos.dgwt.papelaria.client.theme;

import com.google.gwt.core.client.GWT;
import com.googlecode.dgwt.client.dijit.theme.CSS;
import com.googlecode.dgwt.client.dijit.theme.Theme;
import com.wellsantos.dgwt.papelaria.client.resource.stylesheet.StyleSheetResources;


public class PapelariaTheme extends Theme {

    
    private final StyleSheetResources STYLE_SHEETS = GWT.create(StyleSheetResources.class);

    
    @Override
    public CSS document() {
        CSS css = getStyleSheetEngine().create(DOCUMENT_BASE_CLASS);
        if (css.isEmpty()){
            super.document();
            css.addDeclaration(STYLE_SHEETS.documentBody());
        }
        return css;
    }

    
    public CSS cadernoPanel(){
        CSS css = getStyleSheetEngine().create("cadernoPanel");
        if (css.isEmpty()){
            css.addDeclaration(
                ".cadernoPanel .pagina {" +
                    "background-color: #FFF;" +
                "}"
            );
        }
        return css;
    }


    public CSS searchPanel(){
        CSS css = getStyleSheetEngine().create("searchPanel");
        if (css.isEmpty()){
            css.addDeclaration(STYLE_SHEETS.searchPanel());
        }
        return css;
    }

}
